package com.myapp.ruyixing.http;

import org.json.JSONObject;

import com.myapp.ruyixing.model.ActivityOrderInfo;

public class ActivityOrderInfoParser extends RYJSONParser {
	@Override
	public Object parse(JSONObject jsonObject) {

		ActivityOrderInfo orderInfo = new ActivityOrderInfo();

		ModelParser.parseModel(orderInfo, jsonObject);

		JSONObject data = jsonObject.optJSONObject("data");
		orderInfo.mobile = data.optString("mobile", "");
		orderInfo.name = data.optString("name", "");
		orderInfo.remark = data.optString("remark", "");
		orderInfo.score = data.optString("score", "");
		orderInfo.content = data.optString("content", "");
		orderInfo.sex = data.optString("sex", "");
		orderInfo.status = data.optString("status", "");
		orderInfo.time = data.optString("time", "");

		return orderInfo;

	}
}
